<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>卡券领取</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="author" content="runoob">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/mobile/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/weui.css" />
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
</head>
<style>
    h3{
        color: #FFFFFF;
    }
</style>
<body style="background: #fff">

<!------------------导航-------------------------->
<section>

    <!--------------------------主要内容区域------------------------------------->
    <div class="container" id="container" style="margin: 0;text-align: center">
        <div class="page__bd" style="margin-top: 30%">
            <div class="weui-loadmore">
                <i class="weui-loading" style="width: 60px;height: 60px;"></i>
            </div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">正在加载</h2>
                <p class="weui-msg__desc"></p>
            </div>
        </div>
      
    </div>
</section>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>

    // $(function () {


    wx.config({

        debug: true,
        appId: "{$jssdk['appId']}",
        timestamp: "{$jssdk['timestamp']}",
        nonceStr: "{$jssdk['nonceStr']}",
        signature: "{$jssdk['signature']}",
        jsApiList: [
            'addCard'

        ]
    });

    wx.ready(function () {

        wx.addCard({
            cardList:{$card},
            success: function (res) {

    // /            window.location.replace("{:url('cardget/cardgetsuccessfree',['fid'=>$info['id'],'openid'=>$info['openid'],'mid'=>$info['mid'],'top_mid'=>$info['top_mid']])}")
            },
//                 error:function (res) {
// //                    alert('已添加卡券：' + JSON.stringify(res.cardList));
//                     alert('领取成功');
//                 }
        });

    })

    // })

</script>
</body>
</html>
